import React, { Component } from 'react';

export class App extends Component {
  render() {
    return (
      <div>
        <Hello name={'Rose'}>
          <div style={{ backgroundColor: 'red' }}>Rose-Jack</div>
        </Hello>
      </div>
    );
  }
}

class Hello extends Component {
  render() {
    console.log(this.props);
    return (
      <div>
        <h1>Hello</h1>
        {this.props.children}
        {this.props.name}
      </div>
    );
  }
}

export default App;
